package com.leo.train.business.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * 火车座位实体
 */

@Data
public class Seat {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String trainCode;
    private Integer carriageIndex; // 车厢厢序
    private String row;
    private String col; // 列号-枚举：枚举类SeatColEnum
    private String seatType; // 座位类型-枚举：枚举类SeatTypeEnum
    private Integer carriageSeatIndex;
    private Date createTime;
    private Date updateTime;
}
